package com.neusoft.elmboot.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.elmboot.po.WalletExc;
import com.neusoft.elmboot.service.WalletExcService;

@RestController
@RequestMapping("/WalletExc")
public class WalletExcController {

	@Autowired
	private WalletExcService walletExcService;
	
	@GetMapping("/userId/{userId}")
	public List<WalletExc> listExcById(@PathVariable String userId) throws Exception{
		return walletExcService.listExcById(userId);
	}
	
}